<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Pegawai extends CI_Controller {


function __construct()
	{
		parent::__construct();
		$this->load->database();
		$this->load->model('pegawai_model','pm');
		$this->load->helper('string');
			
	}

function index()
	{
		$data['pegawai']= $this->pm->get_pegawai_all();
		$data['keluarga'] = $this->pm->get_keluarga_by('NIP','5');
		$data['pendidikan_formal'] = $this->pm->pend_formal_by('NIP','5');
		$data['pendidikan_nonformal'] = $this->pm->pend_nonformal_by('NIP','5');
		$data['riwayat_jabatan'] = $this->pm->riwayat_jabatan_by('NIP','5');
		$data['riwayat_pangkat'] = $this->pm->riwayat_pangkat_by('NIP','5');
		$data['pengabdian']	= $this->pm->pengabdian_all();
		//$data['num_rows'] = count($data['keluarga']);

		$this->load->view('text',$data);
	}

function test()
	{
		echo "TEST";
	}

function keluarga()
	{

	}
}